package com.quzubuluo.quzutool.model;

import com.quzubuluo.quzutool.base.BaseResponse;
import com.quzubuluo.quzutool.net.RetrofitHelper;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;

/**
 * Created by Administrator on 2017/8/7.
 */

public class InputDataRemoteSource implements InputDataSource {

    public InputService service;

    public InputDataRemoteSource() {
        this.service = RetrofitHelper.createApi(InputService.class);
    }

    @Override
    public Observable<BaseResponse> inputInfo(String username, String mobile, String address, String idCardNo, String imei, String goodsName, String color, String capacity, String goodsAmount, String partner, String invoiceNo, String shippingTime, Map<String, RequestBody> picFiles) {
        return service.inputInfo(username, mobile, address, idCardNo, imei, goodsName, color, capacity, goodsAmount, partner, invoiceNo, shippingTime, picFiles);
    }

    @Override
    public Observable<BaseResponse> inputInfo(String username, String mobile, String address, String idCardNo, String imei, String goodsName, String color, String capacity, String goodsAmount, String partner, String invoiceNo, String shippingTime) {
        return service.inputInfo(username, mobile, address, idCardNo, imei, goodsName, color, capacity, goodsAmount, partner, invoiceNo, shippingTime);
    }
}
